const Mock = require('mockjs')
const fs = require('fs')

const data = Mock.mock({
    'list|20': [
        {
            'title': '@ctitle(2,3)',
            'children': [
                {
                    'word': '@cword(10,20)'
                }
            ]
        }
    ]
})

fs.writeFileSync('./data.json', JSON.stringify(data.list))